<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">Message list</a></li>
        <li><a href="{:url('AdminIndex/add')}">Add Type</a></li>
    </ul>
    <form method="post" class="js-ajax-form" action="#">
        <div class="table_list">
            <table width="100%" class="table table-hover table-bordered">
                <thead>
                <tr>
                    <th width="50">ID</th>
                    <th width="100">TypeName</th>
                    <th width="120">CreateTime</th>
                    <th width="120">{:lang('ACTIONS')}</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="datas" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.cat_name}</td>
                        <td>{$vo.createtime}</td>
                        <td>
                            <a class="btn btn-xs btn-primary" href="{:url('AdminIndex/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                            <!-- <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminIndex/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a> -->
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <ul class="pagination">{$page|default=''}</ul>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }
</script>
</body>
</html>